package com.foo;



import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * Created with IntelliJ IDEA.
 * User: Mickle
 * Date: 9/6/12
 * Time: 11:00 PM
 * To change this template use File | Settings | File Templates.
 */
public class MyApp {

    // Define a static logger variable so that it references the
    // Logger instance named "MyApp".
    private static Logger logger = LogManager.getLogger(MyApp.class.getName());

    public static void main(String[] args) {

        // Set up a simple configuration that logs on the console.

        logger.trace("Entering application.");
        Bar bar = new Bar();
        if (!bar.doIt()) {
            logger.error("Didn't do it.");
        }
        logger.trace("Exiting application.");
    }
}